Conversation
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughHelm chart version incremented to 1.6.4. Deployment and Ingress templates now render several user-supplied values with Helm Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
charts/kafka-ui/templates/deployment.yaml (1)
102-102: Quote templated resource names for YAML scalar safety and consistency.Line 94 already quotes templated
existingConfigMap; doing the same for Line 102, Line 171, and Line 176 avoids edge-case YAML coercion.♻️ Proposed refactor
- name: {{ tpl .Values.existingSecret . }} + name: {{ tpl .Values.existingSecret . | quote }} ... - name: {{ tpl .Values.yamlApplicationConfigConfigMap.name . }} + name: {{ tpl .Values.yamlApplicationConfigConfigMap.name . | quote }} ... - secretName: {{ tpl .Values.yamlApplicationConfigSecret.name . }} + secretName: {{ tpl .Values.yamlApplicationConfigSecret.name . | quote }}Also applies to: 171-171, 176-176
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@charts/kafka-ui/templates/deployment.yaml` at line 102, The YAML scalar for templated resource names should be quoted to avoid coercion issues: update the occurrences that use the tpl helper with .Values.existingSecret (and the other two occurrences noted for existingConfigMap/existingSecret) so they are rendered as quoted strings; for example change name: {{ tpl .Values.existingSecret . }} to name: "{{ tpl .Values.existingSecret . }}" and do the same for the other templated instances (the tpl usages around existingConfigMap and existingSecret at the referenced locations).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@charts/kafka-ui/templates/deployment.yaml`:
- Around line 70-72: The Helm template pipelines call tpl before default which
can fail when keyName is unset; change the pipelines to apply default first then
pass that to tpl so the fallback "config.yml" is used: for both occurrences
referencing .Values.yamlApplicationConfigConfigMap.keyName and
.Values.yamlApplicationConfigSecret.keyName, wrap each keyName with default
"config.yml" (i.e. default .Values...keyName "config.yml") and then call tpl on
that result instead of tpl on the raw keyName.
- Around line 160-162: The volumes block misuses tpl on the object
.Values.volumes which stringifies it and breaks YAML; change the block to mirror
the env pattern (use with .Values.volumes and pass the object directly to toYaml
then nindent) instead of applying tpl — update the template surrounding
.Values.volumes so it uses {{- with .Values.volumes }} then {{- toYaml . |
nindent 8 }} and {{- end }}, leaving tpl only for actual template strings.
---
Nitpick comments:
In `@charts/kafka-ui/templates/deployment.yaml`:
- Line 102: The YAML scalar for templated resource names should be quoted to
avoid coercion issues: update the occurrences that use the tpl helper with
.Values.existingSecret (and the other two occurrences noted for
existingConfigMap/existingSecret) so they are rendered as quoted strings; for
example change name: {{ tpl .Values.existingSecret . }} to name: "{{ tpl
.Values.existingSecret . }}" and do the same for the other templated instances
(the tpl usages around existingConfigMap and existingSecret at the referenced
locations).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d1aaecda-e71b-4057-8335-5bd4c2553eba
📒 Files selected for processing (2)
charts/kafka-ui/Chart.yamlcharts/kafka-ui/templates/deployment.yaml
Haarolean
left a comment
There was a problem hiding this comment.
please address coderabbit comments
I'll have a look over the next few days. (I likely need to test the issues and fixes) |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@charts/kafka-ui/templates/deployment.yaml`:
- Around line 100-102: The templated secret name produced by tpl
(.Values.existingSecret .) is emitted as an unquoted YAML scalar which can be
mis-parsed for values like "on"/"yes"/"true"; update the deployment template to
emit a quoted string by wrapping the tpl call with Helm's quote function (i.e.,
use quote (tpl .Values.existingSecret .)) for the secretRef.name so the rendered
name is always a proper YAML string; mirror the same quoting approach used for
existingConfigMap to ensure consistency.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a0959b64-2cb9-4d65-b6b7-07c3a1b09659
📒 Files selected for processing (2)
charts/kafka-ui/Chart.yamlcharts/kafka-ui/templates/deployment.yaml
✅ Files skipped from review due to trivial changes (1)
- charts/kafka-ui/Chart.yaml
|
I'm not sure where to view the requested changes. (I did rebase on main to get rid of the conflicts, not sure if that got rid of them or if it was just the CodeRabbit issues) |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
I thought the edit did not trigger it, deleted and then posted the correct message again, so probably hitting the rate limit again... Need to learn to refresh the issue to be sure I see the latest comments. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@charts/kafka-ui/templates/deployment.yaml`:
- Around line 173-181: The template currently calls tpl on
.Values.yamlApplicationConfigConfigMap.name and
.Values.yamlApplicationConfigSecret.name without validating presence; update
those tpl calls to use the required function around the name keys so Helm will
emit clear errors if name is missing (match the pattern already used elsewhere
in this file for yamlApplicationConfigConfigMap/name and
yamlApplicationConfigSecret/name), keeping the surrounding keys
(kafka-ui-yaml-conf-configmap and kafka-ui-yaml-conf-secret) intact and quoting
the result as before.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ccb3aa4c-0c5e-4c4c-9b8a-22da09a82341
📒 Files selected for processing (2)
charts/kafka-ui/templates/deployment.yamlcharts/kafka-ui/templates/ingress.yaml
✅ Files skipped from review due to trivial changes (1)
- charts/kafka-ui/templates/ingress.yaml
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Template the config settings that can be used to configure the cluster that kafka-ui talks to.
Happened to clean up a bit of trailing whitespace.
Partially addresses #52. (the parts that I need and a few similar settings)
Summary by CodeRabbit
Bug Fixes
Chores